{* $Id: 20120103 *}
    <form action="" onsubmit="return false;" class="admin-form" id="{$action}-{$req.get.act}">
        <input type="hidden" name="act" value="{$req.get.act}" /><input type="hidden" name="submit" value="1" /><input type="hidden" name="jx" value="1" />
        <ul class="tk-form-ul">
            {foreach $pv.items as $form_items}
            {if $form_items eq 'text' or $form_items eq 'number'}
            <li class="tk-form-li">
                <label for="tk-{$action}-{$req.get.act}-{$form_items@key}">
                    {$lang.$action.$form_items@key|default:$lang.admin_default[$form_items@key]}
                </label>
                <input type="text" name="{$form_items@key}" value="" id="tk-{$action}-{$req.get.act}-{$form_items@key}" class="admin-form-field" />
            </li>{/if}
            {if $form_items eq 'readonly_text'}
            <li class="tk-form-li">
                <label for="tk-{$action}-{$req.get.act}-{$form_items@key}">
                    {$lang.$action.$form_items@key|default:$lang.admin_default[$form_items@key]}
                </label>
                <input type="text" name="{$form_items@key}" value="" id="tk-{$action}-{$req.get.act}-{$form_items@key}" class="admin-form-field" readonly="readonly" />
            </li>{/if}            
            {if $form_items eq 'checkbox'}
            <li class="tk-form-li">
                <label for="tk-{$action}-{$req.get.act}-{$form_items@key}">
                    {$lang.$action.$form_items@key|default:$lang.admin_default[$form_items@key]}
                </label>
                <input type="checkbox" checked="checked" name="{$form_items@key}" value="1" id="tk-{$action}-{$req.get.act}-{$form_items@key}" class="admin-form-field tk-box-w20" />
            </li>{/if} 
            {if $form_items eq 'date'}
            <li class="tk-form-li">
                <label for="tk-{$action}-{$req.get.act}-{$form_items@key}">
                    {$lang.$action.$form_items@key|default:$lang.admin_default[$form_items@key]}
                </label>
                <input type="text" name="{$form_items@key}" value="" id="tk-{$action}-{$req.get.act}-{$form_items@key}" class="admin-form-field admin-datepicker" />
            </li>{/if}
            {if $form_items eq 'ckeditor'}
            <li class="tk-form-li">
                <label for="tk-{$action}-{$req.get.act}-{$form_items@key}">
                    {$lang.$action.$form_items@key|default:$lang.admin_default[$form_items@key]} 
                </label>
                <span class="display-ib">
                    <textarea name="{$form_items@key}" id="tk-{$action}-{$req.get.act}-{$form_items@key}" class="admin-form-field with-ck">
                    </textarea>
                </span>
            </li>
            {/if}
            {if $form_items eq 'textarea'}
            <li class="tk-form-li">
                <label for="tk-{$action}-{$req.get.act}-{$form_items@key}">
                    {$lang.$action.$form_items@key|default:$lang.admin_default[$form_items@key]} 
                </label>
                <textarea name="{$form_items@key}" id="tk-{$action}-{$req.get.act}-{$form_items@key}" class="display-ib admin-form-field">
                </textarea>
            </li>
            {/if}
            {if $form_items eq 'imagebrowser' or $form_items eq 'file'}
            <li class="tk-form-li">
                <label for="tk-{$action}-{$req.get.act}-{$form_items@key}">
                    {$lang.$action.$form_items@key|default:$lang.admin_default[$form_items@key]}
                </label>
                <input type="text" name="{$form_items@key}" readonly="readonly" id="tk-{$action}-{$req.get.act}-{$form_items@key}" class="admin-form-field link" onclick="openKCFinder(this);" value="{$lang.browse}" />
            </li>{/if} 
            {if $form_items eq 'select'}
            <li class="tk-form-li">
                <label for="tk-{$action}-{$req.get.act}-{$form_items@key}">
                    {$lang.$action.$form_items@key|default:$lang.admin_default[$form_items@key]}
                </label>
                <select name="{$form_items@key}" value="" id="tk-{$action}-{$req.get.act}-{$form_items@key}" class="admin-form-field">
                    {html_options options=$pv.items.arr.$form_items@key}
                </select>
            </li>{/if}
			{if $form_items == 'file_upload'}
			{$file_upload="1"}
			<li class="tk-form-li">
				<label for="tk-{$action}-{$req.get.act}-{$form_items@key}">
					{$lang.$action.$form_key|default:$lang.admin_default[$form_items@key]} 
				</label>
				<div class="display-ib">
				<input type="hidden" id="tk-form-file-{$form_items@key}" value="" name="{$form_items@key}" class="tk-form-file_upload-trigger" />
				</div>
			</li>
			{/if}            
            {if $form_items eq 'hidden'}<input class="admin-form-field" type="hidden" name="{$form_items@key}" id="tk-{$action}-{$req.get.act}-{$form_items@key}" value="" />{/if}
            {/foreach}
            <li class="tk-form-li">
                <span class="display-ib width-150">&nbsp;</span>
                <span class="display-ib width-400"><a value="{$config.docroot}admin/{$pv.data[$req.get.act]}act={$pv.data.act}" id="submit-button" class="button tk-trigger"><span class="sprite-icons sprite-tick vmiddle"></span>&nbsp;{$lang.submit}</a><a value="{$pv.data.act}" id="cancel-button" class="button negative tk-trigger"><span class="sprite-icons sprite-cancel vmiddle"></span>&nbsp;{$lang.cancel}</a></span>
            </li>
        </ul>
    </form>
{include file="default/admin/inc_resetck.tpl"}